package com.cvit;
public class Main
{  public void chooseClass(SubClass2 sub2)

   public void chooseClass(SubClass3 sub3)
   
   public static void main(String args[])
   {  int x=7;
      Airplane airplane = new Airplane();
	  airplane.takeOff();
	  SubClass1 sub1 = new SubClass1;
	  sub1.aMethod();
	  int a sub1.aMethod(x,x);
	  System.out.println(a);
	  airplane.fly();
	  SubClass2 sub2 = new SubClass2();
	  SubClass3 sub3 = new SubClass3();
	  chooseClass(sub2);
	  int b sub2.aMethod(x,x);
      System.out.println(b);
	  chooseClass (sub3);
	  int c sub3.aMethod(x,x);
	  System.out.println(c);
	  airplane.fly();
   
   
   
   
   }





}